Battery Meter

 

String Overlays

 

Overlays that expect a value as a string (e.g. Image, Text, Label and Shortcut), can use the following codes in the string:

 

%C      'Charging' - if charging

%c      'charging' - if charging

%s      'c' - if charging

%P      'AC Power' if on AC, "Battery" if on battery

%l       Label format: e.g. "AC Power", "6:28 hours (99%) remaining" etc.

%H      Time remaining in hours with a leading zero

%h      Time remaining in hours.

%M     Time remaining in minutes on the hour with a leading zero

%m     Time remaining in minutes on the hour

%T      uses '%h:%M hours' if >= 60 mins remaining, otherwise '%m minutes'

%d      percent time left (without the %)

%e      ime left in tenths

%%     the '%' sign.

 

The ‘selector’ is ignored.

 

Numeric Overlays

Overlays that expect a numeric value (e.g. Meter and Gauge) can set the selector as follows to obtain different information from the battery meter:

 

0 - ACLine Status. Values returned are as follows:

           0         Offline

           1         Online

           -1        Unknown status

 

1 – BatteryFlag. Values returned are as follows:

           1         High

           2         Low

           4         Critical

           8         Charging

           128      No system battery

           -1        Unknown status

 

2 – BatteryLifePercent

 

3 – BatteryLifeTenths

 

4 – BatteryLifeTime

 

5 – BatteryFullLifeSeconds